import request from "@/utils/requistApi.js";

//获取全部评论
export function getComment(data) {
    return request({
        url: `/dpl/v2/funcomment/${data.funplaycode}/${data.current}`,
        method: "get",
        // data,
    });
}
//发布评论
export function setComment(data) {
    return request({
        url: `/dpl/v2/funcomment`,
        method: "post",
        data: data,
    });
}
//删除评论
export function commentDel(data) {
    return request({
        url: `/dpl/v2/funcomment/${data.usercode}/${data.commentcode}`,
        method: "delete",
        // data,
    });
}
//帖子或者评论的举报
export function reportFunpaly(data) {
    return request({
        url: `/dpl/v2/report/funpaly`,
        method: "post",
        data: data,
    });
}
//推荐帖子相关内容
export function recommend(data) {
    return request({
        url: `/dpl/v2/funplay/recommend`,
        method: "get",
        data,
    });
}
//点赞评论
export function commentLike(data) {
    return request({
        url: `/dpl/v2/funcomment/like/${data.commentId}/${data.isLikeComment}`,
        method: "put",
    });
}